import request from '@/utils/request'

export function query(){
    return request({
      url: '/language/query',
      method: 'get',
    })
  }

export function changeStatus(id, status) {
  return request({
    url: '/language/changeStatus',
    method: 'get',
    params:{id,status}
  })
}

export function getList() {
  return request({
    url: '/language/getList',
    method: 'get'
  })
}

export function addLanguage(data) {
  return request({
    url: '/language/add',
    method: 'post',
    contentType: 'application/json',
    data:{
      languageName:data.languageName,
      code:data.code,
      status:data.status
    }
  })
}